package com.hgxd.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 工单表
 * </p>
 *
 * @author fsd
 * @since 2023-10-18
 */
@Getter
@Setter
@TableName("rb_workorder")
@ApiModel(value = "Workorder对象", description = "工单表")
public class Workorder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("工单内容")
    private String msg;

    @ApiModelProperty("工单状态：1:待处理，2:已派单，3:已接单，4:已结单，5:主动结束")
    private Integer state;

    @ApiModelProperty("维保类型：1:-常规维保，2-故障维保")
    private Integer type;

    @ApiModelProperty("创建时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime creatTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("所属设备id")
    private Integer equipmentId;

    @ApiModelProperty("所属设备名称")
    private String equipmentName;

    @ApiModelProperty("所属组织id")
    private Integer organizationId;

    @ApiModelProperty("所属组织名称")
    private String organizationName;


}
